<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>


</head>
<body>


<script type="module">
    let person1 = {
        name: "张三",
        age: 18
    };
    let person2 = {
        name: "李四",
        height: 180
    };
    console.log(Object.assign(person1, person2));


</script>
</body>
</html>
